﻿using System;
using System.Collections.Generic;
using System.Text;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace GXJD.NewsPush.Models
{
    /// <summary>
    /// 推送任务类型
    /// </summary>
    [Serializable]
    public class Task
    {
        /// <summary>
        /// ID
        /// </summary>
        [BsonRepresentation(BsonType.ObjectId)]
        public string _id { get; set; }

        /// <summary>
        /// 操作元数据
        /// </summary>
        public Meta meta { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public string typeName { get; set; }

        /// <summary>
        /// 推送人昵称
        /// </summary>
        public string toNickName { get; set; }

        /// <summary>
        /// 推送正文
        /// </summary>
        public string pushContent { get; set; }

        /// <summary>
        /// 推送时间
        /// </summary>
        public DateTime? pushDate { get; set; }

        /// <summary>
        /// 推送标志（-1：失败；0：未推送；1：推送处理中；99：推送成功）
        /// </summary>
        public int? pushFlag { get; set; }

        /// <summary>
        /// 推送结果描述
        /// </summary>
        public string pushResult { get; set; }
    }
}
